package com.edu.atams.entity;

import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author czj666
 * @since 2021-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Student extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("schoolNo")
    private String schoolno;

    private String name;

    private Integer sex;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date birthday;

    private String tel;

    private String email;

    private String address;

    private String idCard;

    private String photo;

    private Integer userId;

    @TableField(exist = false)
    private String className;

    @TableField(exist = false)
    private Integer classId;


}
